package com.YxyBackMange.Service.Ware.Impl;
import com.YxyBackMange.Entity.Ware.WareGoodsImg;
import com.YxyBackMange.Mapper.Ware.WareGoodsImgMapper;
import com.YxyBackMange.Service.Ware.WareGoodsImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareGoodsImgServiceImpl implements WareGoodsImgService{
	
	@Autowired
    private WareGoodsImgMapper wareGoodsImgMapper;
    
   @Override
   public WareGoodsImg insertService(WareGoodsImg wareGoodsImg){
        wareGoodsImgMapper.insertSelective(wareGoodsImg);
	   return wareGoodsImg;
	   
   };
   @Override
   public WareGoodsImg updateService(WareGoodsImg wareGoodsImg){
	     wareGoodsImgMapper.updateByPrimaryKeySelective(wareGoodsImg);
        return wareGoodsImg;
   };
    @Override
    public WareGoodsImg update(WareGoodsImg wareGoodsImg) {
        wareGoodsImgMapper.updateByPrimaryKeySelective(wareGoodsImg);
        return wareGoodsImg;
    }
   @Override
   public WareGoodsImg delete(WareGoodsImg wareGoodsImg){

	     wareGoodsImgMapper.delete(wareGoodsImg);
        return wareGoodsImg;
   };
    @Override
    public WareGoodsImg insert(WareGoodsImg wareGoodsImg){

        wareGoodsImgMapper.insertSelective(wareGoodsImg);
        return wareGoodsImg;

        };
}
